package com.xhgd.dboselect.controller;

import com.xhgd.dboservice.PartMaster;
import com.xhgd.dboselect.service.DboService;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
public class PartMasterController {

    @Autowired
    private DboService dboService;

    @GetMapping("/partMaster")
    public List<PartMaster> getPartmaster(Integer partIndex) {
        List<PartMaster> partmasterByIndex = dboService.getPartmasterByIndex(partIndex);
        return partmasterByIndex;
    }
}
